﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RoomAvalibility.aspx.cs" Inherits="SwenAssigment.RoomAvalibility" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
    .auto-style2 {
        text-align: right;
    }
        .auto-style5 {
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
            </td>
            <td class="auto-style2" style="white-space:nowrap"><a href="BookingSearch.aspx">To Booking Search</a></td>
        </tr>
        <tr>
            <td class="auto-style2"> &nbsp;</td>
            <td class="auto-style2" style="white-space:nowrap">&nbsp;</td>
            <td>&nbsp;</td>
            <td class="auto-style5" style="white-space:nowrap"><a href="GuestSearch.aspx">To Guest search</a></td>
        </tr>
        <tr>
            <td class="auto-style2"> </td>
            <td class="auto-style2" style="white-space:nowrap">Room Type: </td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>All</asp:ListItem>
                    <asp:ListItem>Superior</asp:ListItem>
                    <asp:ListItem>Deluxe</asp:ListItem>
                    <asp:ListItem>Suite</asp:ListItem>
                    <asp:ListItem>Executive</asp:ListItem>
                    <asp:ListItem>Executive Suite</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td class="auto-style2">Status: </td>
            <td style="white-space:nowrap">
                <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>All</asp:ListItem>
                    <asp:ListItem Selected="True">Vacant</asp:ListItem>
                    <asp:ListItem>Occupied</asp:ListItem>
                    <asp:ListItem>Vacant - To be cleaned</asp:ListItem>
                    <asp:ListItem>Room service</asp:ListItem>
                </asp:DropDownList>
&nbsp;<asp:Button ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="roomid" HeaderText="Id" />
                        <asp:BoundField DataField="location" HeaderText="Location" />
                        <asp:BoundField DataField="desc" HeaderText="Description" />
                        <asp:BoundField DataField="costperday" HeaderText="Cost per day" />
                        <asp:BoundField DataField="status" HeaderText="Status" />
                        <asp:HyperLinkField DataNavigateUrlFields="roomid" DataNavigateUrlFormatString="RoomDetail.aspx?roomid={0}" HeaderText="Details" NavigateUrl="~/RoomDetail.aspx" Text="Edit" />
                    </Columns>
                    <EmptyDataTemplate>
                        No results found
                    </EmptyDataTemplate>
                </asp:GridView>
                </td>
            <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>
